package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-03-14
 */
@TableName("t_monthbalance_detail")
public class TMonthbalanceDetail extends Model<TMonthbalanceDetail> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 来源 1，收货，2，自提，3，配送，4，中转，5，改单
     */
    private Integer income;
    /**
     * 收货，配送，中转 则为train_id  改单 自提则为order_id
     */
    @TableField("income_id")
    private Integer incomeId;

    @TableField("bill_id")
    private Integer billId;
    /**
     * 收货，配送，中转(train_no) 改单 自提的original_num
     */
    @TableField("income_name")
    private String incomeName;
    /**
     * 待结算/已结算 0/1
     */
    private String status;
    /**
     * 交易对象
     */
    private String traner;

    private String balance_num;
    /**
     * 应收金额
     */
    private Double money;
    /**
     * 月结收银的时候生成 对应 t_monthbalance id
     */
    @TableField("monthbalance_id")
    private Integer monthbalanceId;
    /**
     * 创建日期
     */
    private Date createtime;
    /**
     * 创建人员
     */
    private Integer creater;
    /**
     * 备注
     */
    private String remark;
    /**
     * 网点id
     */
    @TableField("dot_id")
    private Integer dotId;
    /**
     * 付款方式，0现结 1月结
     */
    @TableField("settlement_type")
    private Integer settlementType;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getIncome() {
        return income;
    }

    public void setIncome(Integer income) {
        this.income = income;
    }

    public Integer getIncomeId() {
        return incomeId;
    }

    public void setIncomeId(Integer incomeId) {
        this.incomeId = incomeId;
    }

    public String getIncomeName() {
        return incomeName;
    }

    public void setIncomeName(String incomeName) {
        this.incomeName = incomeName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getTraner() {
        return traner;
    }

    public void setTraner(String traner) {
        this.traner = traner;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Integer getMonthbalanceId() {
        return monthbalanceId;
    }

    public void setMonthbalanceId(Integer monthbalanceId) {
        this.monthbalanceId = monthbalanceId;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getCreater() {
        return creater;
    }

    public void setCreater(Integer creater) {
        this.creater = creater;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getDotId() {
        return dotId;
    }

    public void setDotId(Integer dotId) {
        this.dotId = dotId;
    }

    public Integer getSettlementType() {
        return settlementType;
    }

    public void setSettlementType(Integer settlementType) {
        this.settlementType = settlementType;
    }

    public Integer getBillId() {
        return billId;
    }

    public void setBillId(Integer billId) {
        this.billId = billId;
    }

    public String getBalance_num() {
        return balance_num;
    }

    public void setBalance_num(String balance_num) {
        this.balance_num = balance_num;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TMonthbalanceDetail{" +
        "id=" + id +
        ", income=" + income +
        ", incomeId=" + incomeId +
        ", incomeName=" + incomeName +
        ", status=" + status +
        ", traner=" + traner +
        ", money=" + money +
        ", monthbalanceId=" + monthbalanceId +
        ", createtime=" + createtime +
        ", creater=" + creater +
        ", remark=" + remark +
        ", dotId=" + dotId +
        ", settlementType=" + settlementType +
        "}";
    }
}
